﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Default.ascx.cs" Inherits="Framework.Portal.Layouts.Admin.Components.Statistic.Default" %>
<table border="0" cellpadding="0" cellspacing="1" class="content" width="100%">
    <tr>
        <td class="header1" align="left" colspan="3">
            <asp:Label ID="lblCommandName" runat="server"></asp:Label>
        </td>
    </tr>    
    <tr>
        <td class="header2" align="left" colspan="3">
            <asp:UpdatePanel ID="updateThongke" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                <ContentTemplate>
                    Thống kê&nbsp;
                    <asp:DropDownList ID="drpThongke" runat="server" AutoPostBack="true" Width="70" OnSelectedIndexChanged="drpThongke_SelectedIndexChanged">
                        <asp:ListItem Selected="True" Text="" Value="999"></asp:ListItem>
                        <asp:ListItem Text="Năm" Value="YEAR"></asp:ListItem>
                        <asp:ListItem Text="Tháng" Value="MONTH"></asp:ListItem>
                        <asp:ListItem Text="Ngày" Value="DAY"></asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="drpNam" runat="server" AutoPostBack="true" Width="70" Visible="false" OnSelectedIndexChanged="drpNam_SelectedIndexChanged"></asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="drpThang" runat="server" AutoPostBack="true" Width="70" Visible="false" OnSelectedIndexChanged="drpThang_SelectedIndexChanged"></asp:DropDownList>
                    &nbsp;<asp:DropDownList ID="drpNgay" runat="server" AutoPostBack="true" Width="70" Visible="false"></asp:DropDownList>
                    &nbsp;<asp:Button ID="btnClick" runat="server" Text="Thống kê" Visible="false" OnClick="btnClick_Click" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
    <tr>
        <td class="footer" align="left" valign="top" colspan="3">
            <asp:UpdatePanel ID="updateChart" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnClick" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <asp:Panel ID="pnlChart" runat="server" Visible="false">
                        <embed name="FlashControl1" src="/Resource/Images/Clifone/open-flash-chart.swf" quality="High" play="True" menu="False" scale="Showall" loop="True" type="application/x-shockwave-flash" wmode="Transparent" width="100%" height="250px" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="data=/Admin/Components/Statistic/Data.aspx?params=<%=strParams%>"> 
                        </embed>                     
                        </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>           
    </tr>
    <tr>
        <td class="footer" align="left" valign="top" colspan="3">&nbsp;</td>
    </tr>
    <tr>
        <td class="postheader" align="left" valign="top" width="40%">
            <asp:UpdatePanel ID="updateTotalInfo" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnClick" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <asp:Panel ID="pnlTotalInfo" runat="server" Visible="false">
                    <asp:Repeater ID="rptTotalInfo" runat="server" OnItemDataBound="rptTotalInfo_DatalistBound">
                        <HeaderTemplate>
                        <table width="100%" border="0" cellpadding="3" cellspacing="1" style="float:left; color:#353535;"> 
                        <tr bgcolor="#bddaef">
                            <td style="height:25px;" width="70%" align="center">
                                <strong>Quốc gia</strong></td>
                            <td width="30%" align="center">
                                <strong>Tổng</strong></td>
                        </tr>        
                        </HeaderTemplate>
                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                        <ItemTemplate>
                            <tr bgcolor="#e7f2f9">
                                <td><asp:Label ID="lblQuocgia" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblTong" runat="server"></asp:Label></td>
                            </tr>   
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr bgcolor="#bddaef">
                                <td><asp:Label ID="lblQuocgia" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblTong" runat="server"></asp:Label></td>
                            </tr>            
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
        <td class="post" align="left" width="10%">&nbsp;</td>
        <td class="post" align="left" valign="top" width="50%">
            <asp:UpdatePanel ID="updateDetailInfo" runat="server" UpdateMode="Conditional" RenderMode="Inline">
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnClick" EventName="Click" />
                </Triggers>
                <ContentTemplate>
                    <asp:Panel ID="pnlDetailInfo" runat="server" Visible="false">
                    <asp:Repeater ID="rptDetailInfo" runat="server" OnItemDataBound="rptDetailInfo_DatalistBound">
                        <HeaderTemplate>
                        <table width="100%" border="0" cellpadding="3" cellspacing="1" style="float:left; color:#353535;"> 
                        <tr bgcolor="#bddaef">
                            <td style="height:25px;" width="30%" align="center">
                                <strong>IP</strong></td>
                            <td width="30%" align="center">
                                <strong>Quốc gia</strong></td>
                            <td width="40%" align="center">
                                <strong>Thời gian</strong></td>
                        </tr>        
                        </HeaderTemplate>
                        <FooterTemplate>
                        </table>
                        </FooterTemplate>
                        <ItemTemplate>
                            <tr bgcolor="#e7f2f9">
                                <td><asp:Label ID="lblIP" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblQuocgia" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblDatetime" runat="server"></asp:Label></td>
                            </tr>   
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr bgcolor="#bddaef">
                                <td><asp:Label ID="lblIP" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblQuocgia" runat="server"></asp:Label></td>
                                <td><asp:Label ID="lblDatetime" runat="server"></asp:Label></td>
                            </tr>            
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                    </asp:Panel>
                </ContentTemplate>
            </asp:UpdatePanel>
        </td>
    </tr>
</table>